package com.mycar2w.cloud.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * created time 2017/4/1
 *
 * @author ljc
 * @version V1.0
 * 汽车发动机舱系统测试
 */
@Entity
@Table(name = "car_system_test_brake_enginecompartment", schema = "mycar2wnew", catalog = "")
public class CarSystemTestBrakeEnginecompartment {
    private Long id;
    private String valveCoverGasket;
    private String brakeOiler;
    private String engineBelt;
    private String battery;
    private String transmissionAssembly;
    private String waterTankShell;
    private String oilCanHelp;
    private String engineCylinderPad;
    private String condenser;
    private String waterTank;
    private String oilLevel;
    private String engineAssembly;
    private String antifreezeLevel;
    private String powerSteeringPump;
    private Long carId;

    @Id
    @Column(name = "id", nullable = false)
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "valve_cover_gasket", nullable = true)
    public String getValveCoverGasket() {
        return valveCoverGasket;
    }

    public void setValveCoverGasket(String valveCoverGasket) {
        this.valveCoverGasket = valveCoverGasket;
    }

    @Basic
    @Column(name = "brake_oiler", nullable = true)
    public String getBrakeOiler() {
        return brakeOiler;
    }

    public void setBrakeOiler(String brakeOiler) {
        this.brakeOiler = brakeOiler;
    }

    @Basic
    @Column(name = "engine_belt", nullable = true)
    public String getEngineBelt() {
        return engineBelt;
    }

    public void setEngineBelt(String engineBelt) {
        this.engineBelt = engineBelt;
    }

    @Basic
    @Column(name = "battery", nullable = true)
    public String getBattery() {
        return battery;
    }

    public void setBattery(String battery) {
        this.battery = battery;
    }

    @Basic
    @Column(name = "transmission_assembly", nullable = true)
    public String getTransmissionAssembly() {
        return transmissionAssembly;
    }

    public void setTransmissionAssembly(String transmissionAssembly) {
        this.transmissionAssembly = transmissionAssembly;
    }

    @Basic
    @Column(name = "water_tank_shell", nullable = true)
    public String getWaterTankShell() {
        return waterTankShell;
    }

    public void setWaterTankShell(String waterTankShell) {
        this.waterTankShell = waterTankShell;
    }

    @Basic
    @Column(name = "oil_can_help", nullable = true)
    public String getOilCanHelp() {
        return oilCanHelp;
    }

    public void setOilCanHelp(String oilCanHelp) {
        this.oilCanHelp = oilCanHelp;
    }

    @Basic
    @Column(name = "engine_cylinder_pad", nullable = true)
    public String getEngineCylinderPad() {
        return engineCylinderPad;
    }

    public void setEngineCylinderPad(String engineCylinderPad) {
        this.engineCylinderPad = engineCylinderPad;
    }

    @Basic
    @Column(name = "condenser", nullable = true)
    public String getCondenser() {
        return condenser;
    }

    public void setCondenser(String condenser) {
        this.condenser = condenser;
    }

    @Basic
    @Column(name = "water_tank", nullable = true)
    public String getWaterTank() {
        return waterTank;
    }

    public void setWaterTank(String waterTank) {
        this.waterTank = waterTank;
    }

    @Basic
    @Column(name = "oil_level", nullable = true)
    public String getOilLevel() {
        return oilLevel;
    }

    public void setOilLevel(String oilLevel) {
        this.oilLevel = oilLevel;
    }

    @Basic
    @Column(name = "engine_assembly", nullable = true)
    public String getEngineAssembly() {
        return engineAssembly;
    }

    public void setEngineAssembly(String engineAssembly) {
        this.engineAssembly = engineAssembly;
    }

    @Basic
    @Column(name = "antifreeze_level", nullable = true)
    public String getAntifreezeLevel() {
        return antifreezeLevel;
    }

    public void setAntifreezeLevel(String antifreezeLevel) {
        this.antifreezeLevel = antifreezeLevel;
    }

    @Basic
    @Column(name = "power_steering_pump", nullable = true)
    public String getPowerSteeringPump() {
        return powerSteeringPump;
    }

    public void setPowerSteeringPump(String powerSteeringPump) {
        this.powerSteeringPump = powerSteeringPump;
    }

    @Basic
    @Column(name = "car_id", nullable = true)
    public Long getCarId() {
        return carId;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CarSystemTestBrakeEnginecompartment that = (CarSystemTestBrakeEnginecompartment) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (valveCoverGasket != null ? !valveCoverGasket.equals(that.valveCoverGasket) : that.valveCoverGasket != null)
            return false;
        if (brakeOiler != null ? !brakeOiler.equals(that.brakeOiler) : that.brakeOiler != null) return false;
        if (engineBelt != null ? !engineBelt.equals(that.engineBelt) : that.engineBelt != null) return false;
        if (battery != null ? !battery.equals(that.battery) : that.battery != null) return false;
        if (transmissionAssembly != null ? !transmissionAssembly.equals(that.transmissionAssembly) : that.transmissionAssembly != null)
            return false;
        if (waterTankShell != null ? !waterTankShell.equals(that.waterTankShell) : that.waterTankShell != null)
            return false;
        if (oilCanHelp != null ? !oilCanHelp.equals(that.oilCanHelp) : that.oilCanHelp != null) return false;
        if (engineCylinderPad != null ? !engineCylinderPad.equals(that.engineCylinderPad) : that.engineCylinderPad != null)
            return false;
        if (condenser != null ? !condenser.equals(that.condenser) : that.condenser != null) return false;
        if (waterTank != null ? !waterTank.equals(that.waterTank) : that.waterTank != null) return false;
        if (oilLevel != null ? !oilLevel.equals(that.oilLevel) : that.oilLevel != null) return false;
        if (engineAssembly != null ? !engineAssembly.equals(that.engineAssembly) : that.engineAssembly != null)
            return false;
        if (antifreezeLevel != null ? !antifreezeLevel.equals(that.antifreezeLevel) : that.antifreezeLevel != null)
            return false;
        if (powerSteeringPump != null ? !powerSteeringPump.equals(that.powerSteeringPump) : that.powerSteeringPump != null)
            return false;
        if (carId != null ? !carId.equals(that.carId) : that.carId != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (valveCoverGasket != null ? valveCoverGasket.hashCode() : 0);
        result = 31 * result + (brakeOiler != null ? brakeOiler.hashCode() : 0);
        result = 31 * result + (engineBelt != null ? engineBelt.hashCode() : 0);
        result = 31 * result + (battery != null ? battery.hashCode() : 0);
        result = 31 * result + (transmissionAssembly != null ? transmissionAssembly.hashCode() : 0);
        result = 31 * result + (waterTankShell != null ? waterTankShell.hashCode() : 0);
        result = 31 * result + (oilCanHelp != null ? oilCanHelp.hashCode() : 0);
        result = 31 * result + (engineCylinderPad != null ? engineCylinderPad.hashCode() : 0);
        result = 31 * result + (condenser != null ? condenser.hashCode() : 0);
        result = 31 * result + (waterTank != null ? waterTank.hashCode() : 0);
        result = 31 * result + (oilLevel != null ? oilLevel.hashCode() : 0);
        result = 31 * result + (engineAssembly != null ? engineAssembly.hashCode() : 0);
        result = 31 * result + (antifreezeLevel != null ? antifreezeLevel.hashCode() : 0);
        result = 31 * result + (powerSteeringPump != null ? powerSteeringPump.hashCode() : 0);
        result = 31 * result + (carId != null ? carId.hashCode() : 0);
        return result;
    }
}
